<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8">
	<title>课表时间</title>
	<meta name="renderer" content="webkit">
	<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
	<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
	<meta name="apple-mobile-web-app-status-bar-style" content="black">
	<meta name="apple-mobile-web-app-capable" content="yes">
	<meta name="format-detection" content="telephone=no">
	<link rel="stylesheet" href="../../layui/css/layui.css" media="all" />
	<link rel="stylesheet" href="../../css/public.css" media="all" />
	<script src="../../layui/layui.all.js"></script>
	<script src="../../layui/lay/modules/laytpl.js"></script>
</head>
<body class="childrenBody">

<script id="testTp3" type="text/html">
	<option value="xxx">请选择学校</option>
	{{# for(var i = 0; i < d.length; i++){ }}
	<option value='{{ d[i].id }}'>{{ d[i].name }}</option>
	{{# } }}
</script>

<script id="testTp2" type="text/html">
	<option value="xxx">请选择学期</option>
	{{# for(var i = 0; i < d.length; i++){ }}
	<option value='{{ d[i] }}'>{{ d[i] }}</option>
	{{# } }}
</script>

<script id="testTpl" type="text/html">
	<table class="layui-table" style="margin: 0 auto;" lay-skin="line">
		<colgroup>
			<col width="20">
			<col width="50">
			<col width="50">
		</colgroup>
		<thead>
		<tr>
			<th></th>
			<th>名称</th>
			<th>时间</th>
		</tr>
		</thead>
		<tbody>
		{{# for(var i = 1; i <= d.length; i++){ }}
		<tr>
			<td>{{ i }}</td>
			<td>{{ fun(i) }}</td>
			<td>
				<div class="layui-inline">
					<div class="layui-input-inline">
						<input type="text" class="layui-input test-item" id="t{{ i }}" placeholder=" - " value="{{ d[i-1] }}">
					</div>
				</div>
			</td>
		</tr>
		{{# } }}
		</tbody>
	</table>

	{{#
			function fun(data){
			switch(data){
				case 1:
					return '第一节';
					break;
				case 2:
					return '第二节';
					break;
				case 3:
					return '第三节';
					break;
				case 4:
					return '第四节';
					break;
				case 5:
					return '第五节';
					break;
				case 6:
					return '第六节';
					break;
				case 7:
					return '第七节';
					break;
				case 8:
					return '第八节';
					break;
				case 9:
					return '第九节';
					break;
				case 10:
					return '第十节';
					break;
			}
		}
	}}
</script>


<div class="layui-form" lay-filter="myDiv" style="width:150px;text-align:center;float: left">
	<!--<label class="layui-form-label">请选择学期</label>-->
	<select name="" id="test1" lay-filter="mySelect1">
		<option value="xxx">请选择学校</option>
		<option>王先生</option>
	</select>
</div>
<div class="layui-form" lay-filter="myDiv" style="width:120px;text-align:center;float: left">
	<!--<label class="layui-form-label">请选择学期</label>-->
	<select name="" id="test2" lay-filter="mySelect2">
		<option value="xxx">请选择学期</option>
		<option>王先生</option>
	</select>
</div>

	<div id="course" class="layui-col-md8" style="margin-left: 15%"><!--yw 确定宽度-->

	</div>
	<!--<script type="text/javascript" src="../../layui/layui.js"></script>-->
	<script type="text/javascript" src="scheduleTimeList.js"></script>
</body>
</html>